package com.jeesite.modules.rt.entity;

import javax.validation.constraints.Size;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * rt_daili_deviceEntity
 * @author 李寒冰
 * @version 2024-12-17
 */
@Table(name="rt_daili_device", alias="a", label="rt_daili_device信息", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="sn", attrName="sn", label="sn"),
		@Column(name="dailishang_id", attrName="dailishangId", label="dailishang_id"),
		@Column(name="user_id", attrName="userId", label="user_id"),
	}, orderBy="a.id DESC"
)
public class RtDailiDevice extends DataEntity<RtDailiDevice> {
	
	private static final long serialVersionUID = 1L;
	private String sn;		// sn
	private String dailishangId;		// dailishang_id
	private String userId;		// user_id

	public RtDailiDevice() {
		this(null);
	}
	
	public RtDailiDevice(String id){
		super(id);
	}
	
	@Size(min=0, max=50, message="sn长度不能超过 50 个字符")
	public String getSn() {
		return sn;
	}

	public void setSn(String sn) {
		this.sn = sn;
	}
	
	@Size(min=0, max=50, message="dailishang_id长度不能超过 50 个字符")
	public String getDailishangId() {
		return dailishangId;
	}

	public void setDailishangId(String dailishangId) {
		this.dailishangId = dailishangId;
	}
	
	@Size(min=0, max=50, message="user_id长度不能超过 50 个字符")
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	
}